import React from 'react';
export default function (props) {
    return <div className="jumbotron">
            <div className="container">
                <h1>Hello!</h1>
                <p>你还没登录,请登录!</p>
                <p><button className="btn btn-primary btn-lg"  
                    onClick={ () => {
                        sessionStorage.setItem('login','true');
                        props.history.push(props.location.state.from);
                    }}
                >登录</button></p>
            </div>
        </div>
}